import request from '@/utils/request'

// 查询商家入驻信息列表
export function listMallShopUser(query) {
  return request({
    url: '/mall/mallShopUser/list',
    method: 'get',
    params: query
  })
}

// 查询商家入驻信息详细
export function getMallShopUser(id) {
  return request({
    url: '/mall/mallShopUser/' + id,
    method: 'get'
  })
}


// 查询商家账号信息详细
// export function queryShopUser(id) {
//   return request({
//     url: '/shop/shopUser/' + id,
//     method: 'get'
//   })
// }

// 新增商家入驻信息
export function addMallShopUser(data) {
  return request({
    url: '/mall/mallShopUser',
    method: 'post',
    data: data
  })
}

// 修改商家入驻信息
export function updateMallShopUser(data) {
  return request({
    url: '/mall/mallShopUser',
    method: 'put',
    data: data
  })
}

// 删除商家入驻信息
export function delMallShopUser(id) {
  return request({
    url: '/mall/mallShopUser/' + id,
    method: 'delete'
  })
}

// 导出商家入驻信息
export function exportMallShopUser(query) {
  return request({
    url: '/mall/mallShopUser/export',
    method: 'get',
    params: query
  })
}